package e2q.security.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * E2qSmDepartment entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "e2q_sm_department")
public class E2qSmDepartment extends e2q.web.orm.Persistent implements
		java.io.Serializable {

	// Fields

	private Long id;
	private E2qSmDepartment e2qSmDepartment;
	private List<E2qSmDepartment> e2qSmDepartmentList;
	private String depaName;
	private String depaNotes;

	// Property accessors
	@Override
	public String toString() {
		return id.toString();
	}
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "depaId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "depaParentId")
	public E2qSmDepartment getE2qSmDepartment() {
		return this.e2qSmDepartment;
	}

	public void setE2qSmDepartment(E2qSmDepartment e2qSmDepartment) {
		this.e2qSmDepartment = e2qSmDepartment;
	}

	@Column(name = "depaName")
	public String getDepaName() {
		return this.depaName;
	}

	public void setDepaName(String depaName) {
		this.depaName = depaName;
	}

	@Column(name = "depaNotes")
	public String getDepaNotes() {
		return this.depaNotes;
	}

	public void setDepaNotes(String depaNotes) {
		this.depaNotes = depaNotes;
	}
}